package com.shopx.gen;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

/**
 * @author lituo
 * @className: BuildBoot
 * @description: TODO
 * @date 2021/12/2 1:57 PM
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,
    DataSourceTransactionManagerAutoConfiguration.class})
@ComponentScan(basePackages = {"com.shopx"})
@ImportResource(value = {"classpath:mybatis-config.xml"})
@Slf4j
public class GenBoot {
  public static void main(String[] args) {
    log.info("网关启动开始......");
    SpringApplication.run(GenBoot.class, args);
  }
}
